package com.h3c.ptability.client;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "pt-manage", url = "${eos.ptlog.url}")
//@FeignClient(name = "pt-manage", url = "http://127.0.0.1:8021")
public interface LogDataFeignClient {

    @GetMapping("/sdOperLog/queryFuzzyListForPage")
    JSONObject querySdOperLog(@RequestParam("appId") String appId,
                                              @RequestParam("operUserId") String operUserId,
                                              @RequestParam("requestUrl") String requestUrl,
                                              @RequestParam("startTime") String startTime,
                                              @RequestParam("endTime") String endTime,
                                              @RequestParam("currentPage") Integer currentPage,
                                              @RequestParam("pageSize") Integer pageSize);

    @GetMapping("/sdFileOperLog/queryFuzzyListForPage")
    JSONObject querySdFileOperLog(@RequestParam("appId") String appId,
                                                  @RequestParam("operUserId") String operUserId,
                                                  @RequestParam("startTime") String startTime,
                                                  @RequestParam("endTime") String endTime,
                                                  @RequestParam("currentPage") Integer currentPage,
                                                  @RequestParam("pageSize") Integer pageSize);

    @GetMapping("/sdAuthChgLog/queryFuzzyListForPage")
    JSONObject querySdAuthChgLog(@RequestParam("appId") String appId,
                                                 @RequestParam("operUserId") String operUserId,
                                                 @RequestParam("startTime") String startTime,
                                                 @RequestParam("endTime") String endTime,
                                                 @RequestParam("currentPage") Integer currentPage,
                                                 @RequestParam("pageSize") Integer pageSize);
}
